export const PAGE_CODE = 'dcs-sales-salePlanOrder';
import {PAGE} from '../constants';
import moment from 'moment';
import {EnumItem, Enum} from 'Shared/utils/enumType';
const CN = 'zh-CN';
const EN = 'en-US';

export const PERMISSION = {
    add: 'add',
    abandon: 'abandon',
    update: 'update',
    approve: 'approve',
    submit: 'submit',
    export: 'export',
    batchImport: 'import'
};
export const DEFAULT_QUERY_OPTION = {
    brandId: '',
    marketDepartmentId: '',
    dealerId: '',
    planCode: '',
    manufacturerId: '',
    submitYear: moment().year(),
    submitMonth: moment().month() + 1,
    status: [],
    pageIndex: PAGE.index,
    pageSize: PAGE.size,
};
export const salePlanAssembleMethods = Object.freeze({
    __proto__: Enum,
    CKD: 2,
    SKD: 3,
    properties: Object.freeze({
        '2': Object.freeze({
            __proto__: EnumItem,
            [CN]: 'CKD',
            [EN]: 'CKD'
        }),
        '3': Object.freeze({
            __proto__: EnumItem,
            [CN]: 'SKD',
            [EN]: 'SKD'
        }),
    })
});
